﻿@using LeadMaster.Helpers
@using LeadMaster.Properties

<div id="leadslist" class="largepanelleft FancyCorners DropShadow">
</div>

<script type="text/javascript">
    $(document).ready(function () {
    
    @if (this.User.IsInRole(ApplicationRoles.Operations) )
    {
    <text>
        $('#leadslist').show();
        $('#leadslist').html('<div style="text-align: center;"><div><img src="@Url.Content("../Images/ajaxspinner_large.gif")" alt="Loading..." style="margin: 20px;" /></div><div>Loading...</div></div>');
        $('#leadslist').load('@(Url.Action("Index", "Leads"))');
    </text>
    }
    else
    {
    <text>
        $('#leadslist').hide();
    </text>
    }

    });
</script>

